package com.ruoyi.hospital.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 医院科室关联对象 hospital_department
 * 
 * @author 天天困
 * @date 2025-08-14
 */
@AllArgsConstructor
@Data
@NoArgsConstructor
public class HospitalDepartment extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 医院ID */
    @Excel(name = "医院ID")
    private Long hospitalId;

    /** 科室ID */
    @Excel(name = "科室ID")
    private Long departmentId;

    /** 删除标记：0未删除，1已删除 */
    private Integer del;
    private String hospitalName; // 医院名称
    private String departmentName; // 科室名称

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setHospitalId(Long hospitalId) 
    {
        this.hospitalId = hospitalId;
    }

    public Long getHospitalId() 
    {
        return hospitalId;
    }

    public void setDepartmentId(Long departmentId) 
    {
        this.departmentId = departmentId;
    }

    public Long getDepartmentId() 
    {
        return departmentId;
    }

    public void setDel(Integer del) 
    {
        this.del = del;
    }

    public Integer getDel() 
    {
        return del;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("hospitalId", getHospitalId())
            .append("departmentId", getDepartmentId())
            .append("del", getDel())
            .toString();
    }
}
